# Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.

if (NOT WIN32)
    message(FATAL_ERROR "This project is intended for Windows only.")
endif()

cmake_minimum_required(VERSION 3.15)    # 3.15 is required for the CMP0092 policy

string(TIMESTAMP GENTIME_YEAR "%Y" UTC)
string(TIMESTAMP GENTIME_DAY "%j" UTC)
string(TIMESTAMP GENTIME_HOUR "%H" UTC)
string(TIMESTAMP GENTIME_MINUTE "%M" UTC)

project(WinShellIntegration
    VERSION ${GENTIME_YEAR}.${GENTIME_DAY}.${GENTIME_HOUR}.${GENTIME_MINUTE}
    LANGUAGES CXX
)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_CXX_EXTENSIONS OFF)

add_subdirectory("src/winshellintegration")
add_subdirectory("src/winshellintegrationbridge")

#enable_testing()
#add_subdirectory("tests")
